<?php
include('header.php');
include('pool.php');
include('games.php');
include('chat.php');

$posts = getPostExcerpt(4);

$otherPosts = getPostTitles(4,5);

$lastPhotos = getLastPhotos();

$lastPhotos2 = getLastPhotos2();

$mostCommentedPhotos = getMostCommentedPhotos();

$mostCommentedPhotos2 = getMostCommentedPhotos2();

$mostPopularPhotos = getMostPopularPhotos();

$mostPopularPhotos2 = getMostPopularPhotos2();


$smarty->assign('posts', $posts);

$smarty->assign('otherPosts', $otherPosts);

$smarty->assign('lastPhotos', $lastPhotos);

$smarty->assign('lastPhotos2', $lastPhotos2);

$smarty->assign('mostCommentedPhotos', $mostCommentedPhotos);

$smarty->assign('mostCommentedPhotos2', $mostCommentedPhotos2);

$smarty->assign('mostPopularPhotos', $mostPopularPhotos);

$smarty->assign('mostPopularPhotos2', $mostPopularPhotos2);

$smarty->assign('media', siteinfo('media'));


$smarty->assign('pool', $pool);

$smarty->display('pocetna.tpl');

include('footer.php');
?>
